// vite.config.ts
import { defineConfig, loadEnv } from "file:///D:/wjWorkdpsce/my/demos/softWang/frontend/ui-manager-pc/node_modules/vite/dist/node/index.js";
import vue from "file:///D:/wjWorkdpsce/my/demos/softWang/frontend/ui-manager-pc/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import path from "path";
import AutoImport from "file:///D:/wjWorkdpsce/my/demos/softWang/frontend/ui-manager-pc/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///D:/wjWorkdpsce/my/demos/softWang/frontend/ui-manager-pc/node_modules/unplugin-vue-components/dist/vite.mjs";
import { ElementPlusResolver } from "file:///D:/wjWorkdpsce/my/demos/softWang/frontend/ui-manager-pc/node_modules/unplugin-vue-components/dist/resolvers.mjs";
var __vite_injected_original_dirname = "D:\\wjWorkdpsce\\my\\demos\\softWang\\frontend\\ui-manager-pc";
var vite_config_default = defineConfig(({ command, mode }) => {
  const root = process.cwd();
  const env = loadEnv(mode, root);
  return {
    base: "./",
    plugins: [
      vue(),
      AutoImport({
        imports: [
          "vue",
          "vue-router",
          "pinia"
        ],
        dts: "types/auto-import.d.ts",
        //生成全局引入的文件
        resolvers: [
          ElementPlusResolver()
        ]
      }),
      Components({
        resolvers: [
          ElementPlusResolver()
        ]
      })
    ],
    //配置需要的插件列表
    css: {
      preprocessorOptions: {
        scss: {
          additionalData: `
            @use "./src/assets/styles/util.scss" as *;
          `
        }
      }
    },
    // resolver配置
    resolve: {
      // 别名配置
      alias: {
        "@": path.resolve(__vite_injected_original_dirname, "./src"),
        "@components": path.resolve(__vite_injected_original_dirname, "./src/components"),
        "@assets": path.resolve(__vite_injected_original_dirname, "./src/assets"),
        "@images": path.resolve(__vite_injected_original_dirname, "./src/assets/images"),
        "@views": path.resolve(__vite_injected_original_dirname, "./src/views"),
        "@store": path.resolve(__vite_injected_original_dirname, "./src/store"),
        "#": path.resolve(__vite_injected_original_dirname, "types"),
        "~": path.resolve(__vite_injected_original_dirname, "./")
      }
    },
    build: {
      outDir: env.VITE_OUT_DIR || "dist",
      assetsDir: "assets",
      //指定静态资源存放路径
      sourcemap: false,
      //是否构建source map文件
      rollupOptions: {
        output: {
          // 最小化拆分包
          manualChunks(id) {
            if (id.includes("node_modules")) {
              return id.toString().split("node_modules/")[1].split("/")[0].toString();
            }
          },
          chunkFileNames: "js/[name].[hash].js"
          //用于命名代码拆分时创建的共享块的输出命名
        }
      }
    },
    assetsInclude: path.resolve(__vite_injected_original_dirname, "./src/assets"),
    //静态资源处理
    // 本地运行配置，以及反向代理
    server: {
      cors: true,
      //允许跨域
      port: Number(env.VITE_PORT),
      host: "0.0.0.0",
      proxy: {
        //配置代理
      }
    }
  };
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJEOlxcXFx3aldvcmtkcHNjZVxcXFxteVxcXFxkZW1vc1xcXFxzb2Z0V2FuZ1xcXFxmcm9udGVuZFxcXFx1aS1tYW5hZ2VyLXBjXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJEOlxcXFx3aldvcmtkcHNjZVxcXFxteVxcXFxkZW1vc1xcXFxzb2Z0V2FuZ1xcXFxmcm9udGVuZFxcXFx1aS1tYW5hZ2VyLXBjXFxcXHZpdGUuY29uZmlnLnRzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9EOi93aldvcmtkcHNjZS9teS9kZW1vcy9zb2Z0V2FuZy9mcm9udGVuZC91aS1tYW5hZ2VyLXBjL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnLCBsb2FkRW52IH0gZnJvbSBcInZpdGVcIjtcbmltcG9yd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